import Component.*;
import Decorator.*;
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.

        Component textBox = new TextComponents();

        Decorator decoratorBold = new DecoratorBold(textBox);

        Decorator decoratorItalic = new DecoratorItalic(decoratorBold);

        Decorator decoratorUnderline = new DecoratorUnderline(decoratorItalic);

        decoratorUnderline.operation("软设");

        decoratorBold.operation("第二个软设");

        Decorator decorator = new DecoratorBold(new DecoratorItalic(textBox));

    }
}